<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>百分比布局</title>
    <script src="./flexible.js"></script>
    <style>
        html {
            font-size: 16px;
        }
        body {
            height: 100vh;
        }
    
      .box {
        width: 100px;
        height: 100px;
      }

      .box2 {
        width: 10vw;
        height: 10vw;
      }

      .box3 {
        width: 10%;
        height: 10%;
      }

      .box4 {
        width: 1rem;
        height: 1rem;
      }


      .gap {
        margin-top: 20px;
        margin-left: 20px;
        background-color: pink;
      }
    </style>
  </head>
  <body>
    <div class="box gap"></div>

    <div class="box2 gap"></div>

    <div class="box3 gap"></div>

    <div class="box4 gap"></div>
  </body>
</html>
